[Top] [Prev] [Next] [Bottom] [Contents]

SaJavaNotDigit

Prints a Java Script statement to check if a character is not a digit and a newline character to standard out.

Synopsis

#include "sajavasc.h"
int SaJavaNotDigit(char* msg);

Argument

msg
A string specifying a character or variable to check if it is not a digit.

Return Values

Returns an integer with a value of 0 if successful and a value of 1 if msg is either NULL or an empty string.

Description

Prints a Java Script statement to check if a character is not a digit and a newline character to standard out.

Example

The code fragment:

SaJavaNotDigit("ch1");
will write:

if(ch1 < "0" || "9" < ch1) {\n
to the output stream.

See Also

SaJavaB, SaJavaCommE, SaJavaE, SaJavaCommB, SaJavaRetTrue, SaJavaRetFalse, SaJavaPrint, SaJavaMsgBox, SaJavaIsLower, SaJavaIsUpper, SaJavaLenZero. SaJavaLenNe, SaJavaStdFor



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.